package com.babble.comment.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.support.Query;

import javax.validation.constraints.Digits;

/**
 * 查询评论条件
 *
 * @author wm
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "查询评论条件DTO模型", description = "查询评论条件DTO模型")
public class QueryCommentDTO extends Query {

	@ApiModelProperty("用户id")
	private String userId;

	@ApiModelProperty("博客id")
	private String blogId;

	@ApiModelProperty("评论内容")
	private String content;

	@Digits(integer = 1, fraction = 4, message = "请选择合法来源")
	@ApiModelProperty(value = "评论来源", notes = "1：博客信息、2、问答、3：留言板、4：关于")
	private Integer source;
}
